package com.aps.entity.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import org.hibernate.annotations.GenericGenerator;

import lombok.Data;

/**
 * @author liaoguangan
 * @description <>
 * @date 2018/4/1 14:19
 */
@MappedSuperclass
@Data
public abstract class BaseEntity implements Serializable {

    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    @Id
    private String id;

    @Column
    private Boolean isDeleted = false;

    @Column
    private Date createTime = new Date();
}
